home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Forms Misc / multiple-mailer.izs < prev    next >
Text File  |  2005-09-28  |  4KB  |  143 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Multiple Mailer
  4.  
  5. <!/TITLE>
  6.  
  7. <!DESCRIPTION>This script can help you send an e-mail to anyone on your "list". Just use the pulldown menu to select a recipient, compose your message, and hit 'Send Message' to send it. This too, is another good JavaScript example for all beginners to learn from.
  8. <!/DESCRIPTION> 
  9.  
  10. <!CATEGORY>Forms<!/CATEGORY>
  11.  
  12. <!SCRIPT>
  13. <!-- START OF SCRIPT -->
  14.  
  15.  
  16.  
  17. <FORM NAME="mailer" METHOD="post" ACTION="" ENCTYPE="text/plain" 
  18. onSubmit="(document.mailer.action += mailtoandsubject)"> 
  19.  
  20. <!-- Original:  Jeff Kieke -->
  21.  
  22.  
  23.  
  24. <TABLE BORDER=0>
  25. <TR VALIGN="top">
  26. <TD>Recipient:</TD>
  27. <TD><SELECT NAME="mailtoperson" onChange="msg(this.form)">
  28. <OPTION VALUE="">-- Select --
  29. <OPTION VALUE="person1@aol.com">person1@aol.com
  30. <OPTION VALUE="person2@aol.com">person2@aol.com
  31. <OPTION VALUE="person3@aol.com">person3@aol.com
  32. </SELECT></TD>
  33. </TR>
  34. <TR VALIGN="top">
  35. <TD>Your Name:</TD>
  36. <TD><INPUT TYPE="text" SIZE=45 NAME="name" onChange="msg(this.form)"></TD>
  37. </TR>
  38. <TR VALIGN="top">
  39. <TD>Your Email:</TD>
  40. <TD><INPUT TYPE="text" SIZE=45 NAME="email" onChange="msg(this.form)"></TD>
  41. </TR>
  42. <TR VALIGN="top">
  43. <TD>Priority:</TD>
  44. <TD>
  45. <SELECT NAME="priority" onChange="msg(this.form)">
  46. <OPTION VALUE="Normal">Normal
  47. <OPTION VALUE="Urgent">Urgent
  48. <OPTION VALUE="No Reply Needed">No reply needed
  49. </SELECT></TD>
  50. </TR>
  51. <TR VALIGN="top">
  52. <TD>Subject:</TD>
  53. <TD><INPUT TYPE="text" SIZE=45 NAME="subject" onChange="msg(this.form)"></TD>
  54. </TR>
  55. <TR VALIGN="top">
  56. <TD>Message:</TD>
  57. <TD><TEXTAREA NAME="message" COLS=45 ROWS=5 WRAP="virtual" OnChange="msg(this.form)"></TEXTAREA></TD>
  58. </TR>
  59. <TR>
  60. <TD> </TD>
  61. <TD><INPUT TYPE="submit" VALUE="Send Message">
  62. <INPUT TYPE="reset" VALUE="Reset"></TD>
  63. </TR>
  64. </TABLE>
  65. </FORM>
  66.  
  67. <SCRIPT LANGUAGE="JavaScript">
  68. function msg() {
  69. document.mailer.action = "mailto:" 
  70. mailtoandsubject = ((document.mailer.mailtoperson.options[document.mailer.mailtoperson.selectedIndex].value) + '?subject=' + document.mailer.subject.value); 
  71. </SCRIPT> 
  72.  
  73.  
  74. <!-- END OF SCRIPT -->
  75. <!/SCRIPT>
  76.  
  77. <!PREVIEW>
  78. <!-- START OF SCRIPT -->
  79.  
  80.  
  81. <FORM NAME="mailer" METHOD="post" ACTION="" ENCTYPE="text/plain" 
  82. onSubmit="(document.mailer.action += mailtoandsubject)"> 
  83.  
  84. <!-- Original:  Jeff Kieke -->
  85.  
  86.  
  87.  
  88. <TABLE BORDER=0>
  89. <TR VALIGN="top">
  90. <TD>Recipient:</TD>
  91. <TD><SELECT NAME="mailtoperson" onChange="msg(this.form)">
  92. <OPTION VALUE="">-- Select --
  93. <OPTION VALUE="person1@aol.com">person1@aol.com
  94. <OPTION VALUE="person2@aol.com">person2@aol.com
  95. <OPTION VALUE="person3@aol.com">person3@aol.com
  96. </SELECT></TD>
  97. </TR>
  98. <TR VALIGN="top">
  99. <TD>Your Name:</TD>
  100. <TD><INPUT TYPE="text" SIZE=45 NAME="name" onChange="msg(this.form)"></TD>
  101. </TR>
  102. <TR VALIGN="top">
  103. <TD>Your Email:</TD>
  104. <TD><INPUT TYPE="text" SIZE=45 NAME="email" onChange="msg(this.form)"></TD>
  105. </TR>
  106. <TR VALIGN="top">
  107. <TD>Priority:</TD>
  108. <TD>
  109. <SELECT NAME="priority" onChange="msg(this.form)">
  110. <OPTION VALUE="Normal">Normal
  111. <OPTION VALUE="Urgent">Urgent
  112. <OPTION VALUE="No Reply Needed">No reply needed
  113. </SELECT></TD>
  114. </TR>
  115. <TR VALIGN="top">
  116. <TD>Subject:</TD>
  117. <TD><INPUT TYPE="text" SIZE=45 NAME="subject" onChange="msg(this.form)"></TD>
  118. </TR>
  119. <TR VALIGN="top">
  120. <TD>Message:</TD>
  121. <TD><TEXTAREA NAME="message" COLS=45 ROWS=5 WRAP="virtual" OnChange="msg(this.form)"></TEXTAREA></TD>
  122. </TR>
  123. <TR>
  124. <TD> </TD>
  125. <TD><INPUT TYPE="submit" VALUE="Send Message">
  126. <INPUT TYPE="reset" VALUE="Reset"></TD>
  127. </TR>
  128. </TABLE>
  129. </FORM>
  130.  
  131. <SCRIPT LANGUAGE="JavaScript">
  132. function msg() {
  133. document.mailer.action = "mailto:" 
  134. mailtoandsubject = ((document.mailer.mailtoperson.options[document.mailer.mailtoperson.selectedIndex].value) + '?subject=' + document.mailer.subject.value); 
  135. </SCRIPT> 
  136.  
  137. <!-- END OF SCRIPT -->
  138. <!/PREVIEW>
  139.  
  140. <!RELATED>NONE<!/RELATED>
  141.